<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>{title}</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf8">
	<link href="template/default/style/style.css" rel="stylesheet" type="text/css">
	<link href="template/default/style/usermenu.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="lib/usermenu/usermenu.js"></script>
	<script type="text/javascript" src="lib/jquery.js"></script>
	<script type="text/javascript" src="lib/functions.js"></script>
	<script type="text/javascript">
		var old;
		function showrename(){
			$("#namebox").hide();
			$("#renamebox").show();
			old = $("#rename").val();
		}
		function hiderename(){
			$("#namebox").show();
			$("#renamebox").hide();
			$("#rename").val(old);
		}
		function dorename(){
			var str = $("#rename").val();
			if(str.length<=[name_maxlength] && str.length>=[name_minlength]){
				
				for(var i=0;i<str.length;i++){
					if(!(str[i] in oc([
					[js_whitelist]
					]))){
						return false;
					}
				}
				
				$("#renameform").submit();
				
			}
			
		}
	</script>
</head>
<body>
	<div id="page">
		<div id="wrap">
			<div id="header"></div>
			<div id="menu">
				<div class="menubutton">
				<a href="?page=1">{allataimpage}</a>
				</div>
				<div class="menubutton">
				<a href="?page=2">{kereskedespage}</a>
				</div>
				<div class="menubutton">
				<a href="?page=3">{szovetsegpage}</a>
				</div>
				<div class="menubutton">
				<a href="?page=5">{uzenetekpage}</a>
				</div>
			</div>
			<div id="content" class="reszlet">
				<div style="width: 300;height: 250px;float:left;"><img src="[image]" alt="[name]" style="width: 300px; vertical-align: top;"></div>
				<div style="padding: 2px 15px; margin-left: 300px;position: relative; height: 100%">
					
						<div id="namebox">
							<h2 style="display: inline;">[name]</h2>
							<img src="template/default/images/editicon.png" class="editicon" onclick="showrename();" alt="">
						</div><br>
						<div id="renamebox" style="display: none;">
							<form name="renameform" id="renameform" action="?act=rename&amp;id=[id]" method="post">
								<input type="text" id="rename" name="rename" value="[name]" maxlength="[name_maxlength]">
							</form>
							<img src="template/default/images/okayicon.png" class="editicon" onclick="dorename();" alt="">
							<img src="template/default/images/closeicon.png" class="editicon" onclick="hiderename();" alt="">
						</div>
						
					
					
					<div style="font-size: 16px;margin-bottom: 10px;">{jokedve} [jokedv]%</div>
					
					{etele} 
					<form action="?act=changefood&amp;id=[id]" method="post">
						<select name="etel" id="etel">
						<content name="etellista">
							<option value="[etelszam]" [selected]>{etelnev[type][etelszam]} - [etelar] {money}/{day}</option>
						</content>
						</select>
						<input type="submit" value="{change}">
					</form>
					[etelvege]<br>
					<a href="?act=eat&amp;id=[id]">{etet}</a>
					
					<div style="margin-top: 10px;">
						[name]{shome} {haznev[type][housetype]}<br>
						[houseplus]
					</div>
				</div>
				<div style="clear: both;"></div>
			</div>
			
		</div>
	</div>
	<div id="footer">
	
	</div>
	
	[usermenu]
	
</body>
</html>
